﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WenSkinTest
{
    public partial class Form6 : Form
    {
        public Form6()
        {
            InitializeComponent();
        }

        private void Button1_Click(object sender, EventArgs e)
        {

            var poi = new WenSkin.Controls.NestBox.Poi();
            poi.Points.AddRange(new List<PointF> { new PointF(0, 0), new PointF(500, 0), new PointF(300, 300), new PointF(0, 300), new PointF(0, 0) });
            poi.BasicPoint = new PointF(400, 100);
            poi.Rotate = 0;


            this.nestBox1.Pois.Add(poi);
        }

        private void Button2_Click(object sender, EventArgs e)
        {
            this.nestBox1.Rrr();
        }
    }
}
